package com.gitee.andy.rpc.server;

import java.lang.reflect.Method;

public class RpcMethod {

	private final Object obj;
	private final Method method;

	public RpcMethod(Object obj, Method method) {
		super();
		this.obj = obj;
		this.method = method;
	}

	public Object invoke(Object[] args) throws Throwable {
		return method.invoke(obj, args);
	}
}
